package o;

import android.app.Activity;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import com.huawei.appgallery.packagemanager.impl.install.process.PackageInstallerActivity;
import o.cns.a;

public class cpn extends DialogFragment {
    public Dialog onCreateDialog(Bundle bundle) {
        Builder builder = new Builder(getActivity());
        builder.setTitle(a.ˏ);
        builder.setMessage(a.ॱ);
        builder.setPositiveButton(a.ˊ, new OnClickListener(this) {
            final /* synthetic */ cpn ˊ;

            {
                this.ˊ = r1;
            }

            public void onClick(DialogInterface dialogInterface, int i) {
                Activity activity = this.ˊ.getActivity();
                if (activity instanceof PackageInstallerActivity) {
                    ((PackageInstallerActivity) activity).ˊ(true);
                }
            }
        });
        builder.setNegativeButton(a.ˋ, new OnClickListener(this) {
            final /* synthetic */ cpn ˏ;

            {
                this.ˏ = r1;
            }

            public void onClick(DialogInterface dialogInterface, int i) {
                Activity activity = this.ˏ.getActivity();
                if (activity instanceof PackageInstallerActivity) {
                    ((PackageInstallerActivity) activity).ˊ(false);
                }
            }
        });
        return builder.create();
    }
}
